<{foreach from=$tree item=item name="item"}>
<div style="padding:0" depath="<{$item.step}>" class="clear_cat row" cid="<{$item.cat_id}>" pid="<{$item.pid}>">
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td width="20%" style="vertical-align:top">
            <div style="padding-left:<{$item.step*15}>px;text-align:left">
                <{if $item.cls=='true'}>
                <span class="handle-icon" style='width:12px;line-height:12px; height:12px;overflow:hidden;display:inline-block;padding:0;cursor:pointer'>
                    <{img src="bundle/handle-hide.gif" alt=$___b2c="收起子分类"|t:'b2c' title=$___b2c="收起子分类"|t:'b2c' class="handle-hide" app='desktop' style="display:none"}>
                    <{img src="bundle/handle-show.gif" alt=$___b2c="展开子分类"|t:'b2c' title=$___b2c="展开子分类"|t:'b2c' class="handle-show" app='desktop'}>
                </span>
                <{/if}>
				<a href="index.php?app=b2c&ctl=admin_goods_cat&act=edit&p[0]=<{$item.cat_id}>" target="dialog::{title:'<{t}>编辑分类<{/t}>', width:500, height:300}">
            	<{$item.cat_name}>
			     </a>
		   </div>

        </td>

        <td width="22%" style="vertical-align:top"><span class="quiet"><{if $item.type_name}>[<{$item.type_name}>]<{/if}></span></td>
        <td width="15%" style="vertical-align:top"><span class="quiet"><{if $item.hidden == 'true'}><{t}>是<{/t}><{else}><{t}>否<{/t}><{/if}></span></td>
        <td width="8%" align="center" style="vertical-align:top">
            <input class="_x_ipt" type="number" size="5"  name="p_order[<{$item.cat_id}>]" value="<{$item.p_order|default:0}>" vtype="unsigned" style="display:none"><b><{$item.p_order|default:0}></b>
        </td>
        <td width="35%" style="vertical-align:top">
            <div class="clearfix">
 				<div class="span-auto">&nbsp;</div>
				<div class="span-auto">&nbsp;</div>
              	<div class="span-auto">
              	   	<{assign var="cat_id" value=$item.cat_id}>
                        <span class="opt" onClick="new Dialog('index.php?app=b2c&ctl=admin_goods_cat&act=addnew&p[0]=<{$item.cat_id}>', {title:'<{t}>添加子类<{/t}>', width:550, height:300})">
                    	<{img src="bundle/addcate.gif" border="0" alt=$___b2c="添加子分类"|t:'b2c' app='desktop'}>
                    	<{t}>增加子类<{/t}></span>
              	</div>
				<div class="span-auto">
					     <span class="opt" onClick="new Dialog('index.php?app=b2c&ctl=admin_goods_cat&act=edit&p[0]=<{$item.cat_id}>',{title:'<{t}>编辑分类<{/t}>', width:580, height:300})"><{img src="bundle/editcate.gif" border="0" alt=$___b2c="编辑"|t:'b2c'  app='desktop'}><{t}>编辑<{/t}></span>
				</div>
				<div class="span-auto">
				   <span class="opt" onclick="deleteRow('index.php?app=b2c&ctl=admin_goods_cat&act=toRemove&p[0]=<{$item.cat_id}>',event)"><{img src="bundle/delecate.gif" border="0" alt=$___b2c="删除"|t:'b2c' app='desktop'}><{t}>删除<{/t}></span>
				</div>
				<div class="span-auto">
					<span class="opt" onclick='W.page("index.php?app=b2c&ctl=admin_goods&act=index&filter[cat_id]=<{$item.link.cat_id.v}>")'><{img src="bundle/showcate.gif" border="0" alt=$___b2c="查看此分类下商品"|t:'b2c' app='desktop'}><{t}>查看商品<{/t}></span>
				</div>
				<div class="span-auto last">
					<span class="opt" onclick="window.open('<{$item.url}>')"><{img src="bundle/zoom_btn.gif" border="0" alt=$___b2c="跳转前台查看该"|t:'b2c' app='desktop'}><{t}>预览<{/t}></span>
				</div>
            </div>
        </td>
	</tr>
</table>
</div>
<{/foreach}>